home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 November
/
Macworld (1999-11).dmg
/
Updaters
/
WhiteCap 3.0.4
/
WhiteCap Source.sit
/
WhiteCap Source
/
Common
/
io
/
Headers
/
CEgIOFile.h
< prev
next >
Wrap
Text File
|
1999-07-13
|
842b
|
42 lines
#ifndef _CEGIOFILE_
#define _CEGIOFILE_
#include "CEgOStream.h"
#include "CEgIFile.h"
/* *** Class usage note ***
Whenever the client switches modes (ie. from writing to reading or vice versa), the client *must*
call either seek() or seekEnd() (so that internal output buffer is flushed)
*/
class CEgIOFile : public CEgOStream, public CEgIFile {
private:
protected:
int mDoTrunc;
enum {
cMaxOBufSize = 70000
};
public:
CEgIOFile( int inDoTrunc = true );
virtual ~CEgIOFile();
virtual void open( const CEgFileSpec* inSpecPtr );
virtual void close();
void flush();
// Overrides from CEgErr
virtual void seek( long inPos );
virtual long size();
virtual void PutBlock( const void* inSrce, long numBytes );
static long sCreatorType;
};
#endif